.class Lcom/waiqin365/lightapp/photo/a;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/photo/TakePhotosActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 4

    const/4 v3, 0x0

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/photo/b/a/d;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/photo/b/a/d;->b()Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-virtual {v1, v3}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->setResult(I)V

    iget-object v1, v0, Lcom/waiqin365/lightapp/photo/b/a/d;->b:Ljava/lang/String;

    if-eqz v1, :cond_1

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/photo/b/a/d;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->a(Lcom/waiqin365/lightapp/photo/TakePhotosActivity;)Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->a(Lcom/waiqin365/lightapp/photo/TakePhotosActivity;)Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->o()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    new-instance v1, Lcom/waiqin365/lightapp/kehu/b/o;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/kehu/b/o;-><init>()V

    iget-object v2, v0, Lcom/waiqin365/lightapp/photo/b/a/d;->d:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/o;->a:Ljava/lang/String;

    iget-object v2, v0, Lcom/waiqin365/lightapp/photo/b/a/d;->e:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/o;->b:Ljava/lang/String;

    iget-object v2, v0, Lcom/waiqin365/lightapp/photo/b/a/d;->g:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/kehu/b/o;->d:Ljava/lang/String;

    iget-object v0, v0, Lcom/waiqin365/lightapp/photo/b/a/d;->f:Ljava/lang/String;

    iput-object v0, v1, Lcom/waiqin365/lightapp/kehu/b/o;->e:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->a(Lcom/waiqin365/lightapp/photo/TakePhotosActivity;)Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/ImagePreview_Vertical;->a(Lcom/waiqin365/lightapp/kehu/b/o;)V

    new-instance v0, Landroid/content/Intent;

    const-string/jumbo v1, "android.intent.action.RUN"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    const-class v2, Lcom/fiberhome/upload/UpLoadService;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->dismissProgressDialog()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->b(Lcom/waiqin365/lightapp/photo/TakePhotosActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    const v2, 0x7f080640

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/compons/view/c;->a(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->b(Lcom/waiqin365/lightapp/photo/TakePhotosActivity;)Lcom/waiqin365/compons/view/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    goto/16 :goto_0

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    iget-object v0, v0, Lcom/waiqin365/lightapp/photo/b/a/d;->c:Ljava/lang/String;

    invoke-static {v1, v0, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->dismissProgressDialog()V

    goto/16 :goto_0

    :cond_2
    iget-object v1, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    iget v0, v0, Lcom/waiqin365/lightapp/photo/b/a/d;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/photo/a;->a:Lcom/waiqin365/lightapp/photo/TakePhotosActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/photo/TakePhotosActivity;->dismissProgressDialog()V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x3ea
        :pswitch_0
    .end packed-switch
.end method
